home *** CD-ROM | disk | FTP | other *** search
- #include <stddef.h>
-
- #include "netmail.hpp"
-
- #define NMPATH "d:\\tmp\\tmp" /* Let's be lazy and do it this way */
-
- #define MSGTXT1 "The quick brow fox jumps over the lazy dog. " \
- "The quick brow fox jumps over the lazy dog. " \
- "The quick brow fox jumps over the lazy dog. " \
- "The quick brow fox jumps over the lazy dog. " \
- "The quick brow fox jumps over the lazy dog. " \
- "The quick brow fox jumps over the lazy dog. " \
- "The quick brow fox jumps over the lazy dog. " \
- "The quick brow fox jumps over the lazy dog. " \
- "The quick brow fox jumps over the lazy dog. " \
- "The quick brow fox jumps over the lazy dog. " \
- "The quick brow fox jumps over the lazy dog. " \
- "The quick brow fox jumps over the lazy dog. " \
- "The quick brow fox jumps over the lazy dog. " \
- "The quick brow fox jumps over the lazy dog. " \
- "The quick brow fox jumps over the lazy dog. " \
- "The quick brow fox jumps over the lazy dog. " \
- "The quick brow fox jumps over the lazy dog. " \
- "The quick brow fox jumps over the lazy dog. " \
- "The quick brow fox jumps over the lazy dog. " \
- "The quick brow fox jumps over the lazy dog. " \
- "The quick brow fox jumps over the lazy dog. " \
- "The quick brow fox jumps over the lazy dog. " \
- "The quick brow fox jumps over the lazy dog. " \
- "The quick brow fox jumps over the lazy dog. " \
- "The quick brow fox jumps over the lazy dog. " \
- "The quick brow fox jumps over the lazy dog. " \
- "The quick brow fox jumps over the lazy dog. " \
- "The quick brow fox jumps over the lazy dog. "
-
- void main (void)
-
- {
- NetMail msg (NMPATH);
-
- // msg << "\001INTL 27:5331/204 27:1331/703\r";
- msg << "\001MSGID: 27:1331/703 12a5f3db\r";
- msg << "\rThis is a netmail message.\r\r";
- msg << MSGTXT1;
- msg << "\r\rAs you can see, writing one is quite easy.\r\r";
- msg << "Bye!\r";
-
- // msg.From ("Feico de Boer", 2, 282, 357, 13);
- msg.From ("Frank van.Wensveen", 1331, 703);
- // msg.To ("Sysop", 27, 5331, 204, 0);
- msg.To ("Feico de Boer", 5331, 204);
- msg.Subject ("Demo test");
- // msg.SetAttribute (NM_LOCAL | NM_KILL);
- msg.SetAttribute (NetHdr::Private | NetHdr::Kill);
-
- msg.Write (); // write new message
- }
-